package edu.byu.intex2.data.bo;

import edu.byu.intex2.data.DataException;
import edu.byu.intex2.data.dao.ServiceFacilityDAO;

/**
 * @author Jason Whiting
 */
public class ServiceFacility extends BusinessObject
{

    private String address;

    /**
     * Creates a new instance of BusinessObject
     * @param id
     */
    public ServiceFacility(String id)
    {
        super(id);
    }//constructor

    //Quick Access Method
    public void save() throws DataException
    {
        ServiceFacilityDAO.getInstance().save(this);
    }

    /**
     * @return the address
     */
    public String getAddress()
    {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address)
    {
        this.address = address;
        this.setDirty();
    }
}
